package com.basic.service;

import com.basic.service.dto.GenParam;
import com.basic.service.vo.DataBasesParam;
import org.apache.velocity.VelocityContext;

import java.io.StringWriter;
import java.util.zip.ZipOutputStream;

public interface MyGenService {

    /**
     * 根据velocityContext生成代码
     * @param genParam
     * @return
     */
    StringWriter genCodeForVelocityContext(GenParam genParam);

    void genZip(ZipOutputStream zipOutputStream, String templateString, GenParam genParam);

    void genZip(ZipOutputStream zipOutputStream, StringWriter stringWriter, GenParam genParam);

    void connectAndGetData(DataBasesParam param);
}
